package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.User;

public interface UserDao {

	int selectCount(@Param("userName") String userName,
			@Param("userRole") Integer userRole );
	
	List<User> selectUser(
			@Param("startRow") Integer startRow,
			@Param("pageSize") Integer  pageSize,
			@Param("userName") String userName,
			@Param("userRole") Integer userRole );

	int deleteUserById(Integer id);

	User login(@Param("userCode") String userCode, @Param("userPassword") String userPassword);

	int addUser(User user);

	User selectUserById(Long id);

	int ucexist(String userCode);
}
